package com.wkc.data;

import wwk.common.json.JSONObject;
import wwk.common.util.JsonUtil;

public class ListItem {
	public int id;
	public String title;
	public String datetime;
	public String thumbnailUrl;
	public String videoUrl;
	
	public void parse(JSONObject jsonListItem,String baseUrl)
	{
		id=JsonUtil.getInt(jsonListItem,"id",0);
		title=JsonUtil.getString(jsonListItem,"title");
		datetime=JsonUtil.getString(jsonListItem,"datetime");
		thumbnailUrl=JsonUtil.getString(jsonListItem,"thumbnailurl");
		thumbnailUrl=baseUrl+thumbnailUrl;
		videoUrl=JsonUtil.getString(jsonListItem,"videoUrl");
		videoUrl=baseUrl+videoUrl;
	}
}
